<template>
  <div class="wrapper">
    <am-html  :width="750" :height="height" :html="html"></am-html>
  </div>
</template>
<script>
import { AmHtml  } from 'weex-amui'
  export default {
    components: {AmHtml},
    data: function() {
      return {
        url:"",
        html:"",
        height:750 / weex.config.env.deviceWidth * weex.config.env.deviceHeight-weex.config.eros.navBarHeight,
      }
    },
    created: function() {
      this.$router.getParams().then(resData => {
          console.log(resData);
          this.url = resData.url;
          this.html = resData.html;
      });
    }
  }
</script>

<style scoped>
  .wrapper {
    background-color: #cccccc;
    justify-content:flex-start;
    align-items: center;
  }
  .content {
    width: 750;
  }
</style>
